

alist = [123,423213,1,23,42,23,2,3,4,5,340,342]
for i in range(0,len(alist)-1):
    for j in range(0,len(alist)-1-i):
        if alist[j] > alist[j+1]:
            alist[j],alist[j+1] = alist[j+1],alist[j]
print(alist)


classes = [["张三","大壮","小康"],["wangwu","赵六","张三"],["张三","lisi"]]
i = 1
for c in classes:
    for s in c:
        if s == "张三":
            print("张三存在于第{}班".format(i))
    i += 1

# 案例三 作业 ############